Adwaita: avoid too tall headerbars
authorLapo Calamandrei <calamandrei@gmail.com>
Fri, 8 Jan 2016 19:56:40 +0000 (20:56 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Fri, 8 Jan 2016 19:56:40 +0000 (20:56 +0100)
the vertical padding from the headerbar has been removed, now the
sizing is done with min-height, this avoids title and subtitle
labels making the headbar.

gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index ec5c0e5820a62d10dad5adfc50f5b2cda10fa6d6..8fe4f85fbe1bd7cd256dc53c539b0e28b5dcd6ad 100644 (file)
@@ -1112,7 +1112,8 @@ searchbar,
 
 %titlebar,
 headerbar {
-  padding: 6px;
+  padding: 0 6px;
+  min-height: 46px;
   border-width: 0 0 1px;
   border-style: solid;
   border-color: $borders_color;
@@ -1277,8 +1278,12 @@ headerbar {
   }
 
   &.default-decoration {
-    padding: 4px;
-    button { padding: 5px; }
+    padding: 0 4px;
+    min-height: 36px;
+    button {
+      min-height: 26px;
+      padding: 0 5px;
+    }
   }
 }
 
index 9ec4f4f07f9dd29beba00d58498a80da45276fee..a39fbd29f57ae0b105638da71618397031423acf 100644 (file)
@@ -1603,7 +1603,8 @@ searchbar,
  ***************/
 .titlebar:not(headerbar),
 headerbar {
-  padding: 6px;
+  padding: 0 6px;
+  min-height: 46px;
   border-width: 0 0 1px;
   border-style: solid;
   border-color: #1c1f1f;
@@ -1918,12 +1919,14 @@ headerbar {
     border-radius: 0; }
   .default-decoration.titlebar:not(headerbar),
   headerbar.default-decoration {
-    padding: 4px; }
+    padding: 0 4px;
+    min-height: 36px; }
     .default-decoration.titlebar:not(headerbar) button,
     headerbar.default-decoration button,
     headerbar.default-decoration .titlebar button.titlebutton,
     .titlebar headerbar.default-decoration button.titlebutton {
-      padding: 5px; }
+      min-height: 26px;
+      padding: 0 5px; }
 
 .titlebar, .titlebar:backdrop {
   border-top-left-radius: 7px;
index 3efff0d54d6f1e02b6cd2bd32d615bb8ae9bc99b..ec03ad264f7d9c8025ad4e32c93f6605aa561190 100644 (file)
@@ -1607,7 +1607,8 @@ searchbar,
  ***************/
 .titlebar:not(headerbar),
 headerbar {
-  padding: 6px;
+  padding: 0 6px;
+  min-height: 46px;
   border-width: 0 0 1px;
   border-style: solid;
   border-color: #9d9d99;
@@ -1922,12 +1923,14 @@ headerbar {
     border-radius: 0; }
   .default-decoration.titlebar:not(headerbar),
   headerbar.default-decoration {
-    padding: 4px; }
+    padding: 0 4px;
+    min-height: 36px; }
     .default-decoration.titlebar:not(headerbar) button,
     headerbar.default-decoration button,
     headerbar.default-decoration .titlebar button.titlebutton,
     .titlebar headerbar.default-decoration button.titlebutton {
-      padding: 5px; }
+      min-height: 26px;
+      padding: 0 5px; }
 
 .titlebar, .titlebar:backdrop {
   border-top-left-radius: 7px;